package com.wushi.lenovo.asia5b.app_ui.other.dialog;

import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.view.WindowManager;

import com.mvp.base.BaseDialog;
import com.wushi.lenovo.asia5b.R;

import butterknife.OnClick;

/**
 * Created by zhangyuncai on 2018/9/29.
 */
public class AddOrderDialog extends BaseDialog {
    public AddOrderDialog(Context context) {
        super(context);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.dialog_addorder;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initListener() {

    }

    @OnClick({R.id.iv_close})
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.iv_close:
                dismiss();
                break;
            default:
                break;
        }
    }

    @Override
    protected int getGravity() {
        return Gravity.CENTER;
    }

    @Override
    protected int getWidthStyle() {
        return getScreenWidth(0.9f);
    }

    @Override
    protected int getHeightStyle() {
        return WindowManager.LayoutParams.WRAP_CONTENT;
    }

}
